package com.transac.demo.controller;

import com.transac.demo.service.TransactionRequiredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/")
public class TestRequiredController {
    @Autowired
    TransactionRequiredService transactionRequiredService;

    @PostMapping("/testRequired1")
    @ResponseBody
    public void testRequired1() {
        transactionRequiredService.updateMoney1();
    }

    @PostMapping("/testRequired2")
    @ResponseBody
    public void testRequired2() {
        transactionRequiredService.updateMoney2();
    }

    @PostMapping("/testRequired3")
    @ResponseBody
    public void testRequired3() {
        transactionRequiredService.updateMoney3();
    }

    @PostMapping("/testRequired4")
    @ResponseBody
    public void testRequired4() {
        transactionRequiredService.updateMoney4();
    }

    @PostMapping("/testRequired5")
    @ResponseBody
    public void testRequired5() {
        transactionRequiredService.updateMoney5();
    }

    @PostMapping("/testRequired6")
    @ResponseBody
    public void testRequired6() {
        transactionRequiredService.updateMoney6();
    }
}
